﻿using System.Collections.Generic;
using DAO;
using DTO;

namespace BUS
{
    public class LoaiQuangCaoBUS
    {
        public static List<LoaiQuangCaoDTO> getAll()
        {
            return LoaiQuangCaoDAO.getAll();
        }

        public static LoaiQuangCaoDTO getAlongCode(int maLoai)
        {
            return LoaiQuangCaoDAO.getAlongCode(maLoai);
        }

        public static void Insert(LoaiQuangCaoDTO _insert)
        {
            LoaiQuangCaoDAO.Insert(_insert);
        }

        public static void Delete(int maLoai)
        {
            LoaiQuangCaoDAO.Delete(maLoai);
        }

        public static void Update(LoaiNguoiDungDTO dto)
        {
            LoaiQuangCaoDAO.Update(dto);
        }
    }
}
